adding basic tests w/ pytest regressions #227
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a very basic testing framework that we can use to look at the HTML the theme generates. It uses pytest + pytest-regressions to check whether the HTML has changed in an unexpected way.
I've also enabled readthedocs PR preview builds so we can look at docs in a more simple way than using the circleci/github-action combo
note: the goal of this PR is not to exhaustively test the theme (which we should do), but to set up some infrastructure that others could easily expand as we want to iteratively improve tests, add features, etc.
cc @jorisvandenbossche who asked about this.